package com.tengju.bff.interfaces.app.motivation.assembler;

import com.tengju.bff.interfaces.app.motivation.vo.StarLevelVO;
import com.tengju.bff.interfaces.app.motivation.vo.UpgradeDetailVO;
import com.tengju.bff.interfaces.app.motivation.vo.UpgradeIndicatorVO;
import com.tengju.user.domain.model.user.StarLevelEnum;

import java.util.List;

public class UpgradeDetailAssembler {

    public static UpgradeDetailVO convertToVO(StarLevelEnum currentLevel, StarLevelEnum targetLevel, List<UpgradeIndicatorVO> upgradeIndicatorList,String hint) {

        StarLevelVO current = new StarLevelVO(currentLevel.getCode(), currentLevel.getDesc());
        StarLevelVO target = new StarLevelVO(targetLevel.getCode(), targetLevel.getDesc());

        return new UpgradeDetailVO(current,
                target,
                upgradeIndicatorList,
                hint);

    }

}
